/*
 * @Description:
 * @Version: 2.0
 * @Author: Xing
 * @Date: 2020-12-08 14:45:31
 * @LastEditors: Xing
 * @LastEditTime: 2020-12-08 16:50:52
 */
//引入react jsx写法的必须
import React from 'react';
//引入需要用到的页面组件
//需要import一下Redirect
import { Redirect } from 'react-router-dom';

import Login from '../pages/login/login';
import Index from '../pages/index/index';
import ArticleList from '../pages/article/ArticleList/ArticleList';
//引入一些模块
import { BrowserRouter as Router, Route } from 'react-router-dom';

function router() {
  return (
    <Router>
      <Route path="/login" component={Login} />
      <Route path="/index" component={Index} />
      <Route path="/" exact component={Index}></Route>
    </Router>
  );
}

export default router;
